<template>
	<Transfer v-model="value" :data="data"></Transfer>
</template>

<script>
	import Transfer from '@/views/16-穿梭框组件版/transfer.vue';
	export default {
		components: {
			Transfer,
		},
		data() {
			const generateData = _ => {
				const data = [];
				for (let i = 1; i <= 15; i++) {
					data.push({
						key: i,
						label: `备选项 ${ i }`,
						checked: false,
						disabled: i % 4 === 0
					});
				}
				return data;
			};
			return {
				data: generateData(),
				value: [1, 2, 4],
			};
		},
	}
</script>

<style>
</style>
